package com.example.bookKeep.controller;


import com.example.bookKeep.entity.QiaZi;
import com.example.bookKeep.service.QiaZiService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/qiazi")
@Slf4j
public class QiaZiController {

    @Autowired
    private QiaZiService qiaZiService;

    @GetMapping("/list")
    public List<QiaZi> list() {
        return qiaZiService.list();
    }
}
